package com.rtp.transformer.parser;

import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;

/**
 * 
 * @author xueming
 *
 */
public interface TXTOutAndInStream {

	/**
	 * write husband pojo list to husband message stream
	 * @param s husband pojo list
	 * @param os husband message output stream
	 */
	public void write(List s, OutputStream os)
			throws Exception;

	/**
	 * read husband pojo list by husband stream
	 * @param is husband message input stream
	 * @return husband pojo list
	 * @throws Exception
	 */
	public List read(InputStream is) throws Exception;

}
